﻿@model IEnumerable<PNProject.EF.CMenu>
@{
    ViewBag.Title = "ContextMenu";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
    string name = ViewData["name"].ToString();
    string pid = ViewData["Pid"].ToString();
}

<div class="admin_head">
Menu - @name
</div>


<div class="admin_content">
   <a class="newobject" href="/AdminPS/CreateContext/@pid">Tạo mới</a>
   <br />
   <br />
   @foreach (var item in Model)
   {
   <div class="item-div">
    <img src="/Images/Base/chimuc.jpg" style="margin-right:10px; margin-bottom:1px;"/>
    <a class="item-delete" href="/AdminPS/DeleteContext/@item.CMenuID.ToString()">Xóa</a>
    <a class="item-link" href="/AdminPS/EditContext/@item.CMenuID.ToString()">@item.Name</a>
    </div>
   }
</div>
